package com.netty.clientserver.packet;

import com.netty.clientserver.command.Command;
import com.netty.clientserver.packet.base.Packet;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author LiuXiaoYu
 * @date 2022/2/2- 14:30
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class GroupMessage extends Packet {
    private Integer type;
    private Integer toId;
    private String fileType;
    /**群组自带的群成员id集合*/
    private String userIdList;
    /**这个是为了mq消息的唯一的uuid*/
    private String uuid;
    /**适配群聊->发消息的用户名*/
    private String owner;
    /**适配群聊->发消息的用户id*/
    private Integer ownerId;
    //private String ownerImage;
    @Override
    public Integer getCommand() {
        return Command.GROUP_MESSAGE;
    }
}
